package com.yadang.springcloud.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author: 亚当
 * @date: 2022年09月05日 21:09
 * @package: com.yadang.springcloud.controller
 * @Description: TODO
 */
@RestController
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/consul")
    public String paymentINfo(){
        return "springcloud with consul "+serverPort+" "+ UUID.randomUUID().toString();
    }
}
